UPDATE taxonomy
SET rna_type = "mRNA", state_function = "Assigned"
WHERE nucl_hit LIKE "%mRNA%" AND state_function isnull;

UPDATE taxonomy
SET rna_type = "rRNA", state_function = "Assigned"
WHERE (nucl_hit LIKE "%rRNA%" OR nucl_hit LIKE "%ribosomal RNA%") AND state_function isnull;

UPDATE taxonomy
SET rna_type = "Not assigned", state_function = "Assigned"
WHERE (nucl_hit isnull OR nucl_hit LIKE "%genome%" OR nucl_hit LIKE "%contig%" OR nucl_hit LIKE "%chromosome%" OR nucl_hit LIKE "%scaffold%" OR nucl_hit LIKE "%ncRNA%") AND (prot_hit isnull OR prot_hit LIKE "%uncharacterized%" OR prot_hit LIKE "%hypothetical%" OR prot_hit LIKE "%UNKNOWN%") AND (state_function isnull);

UPDATE taxonomy
SET rna_type = "Revise"
WHERE state_function isnull;